package com.itheima.consumer.feign;

import com.itheima.consumer.domain.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "eureka-provider",fallback = GoodsFeignClientsFallback.class)
public interface GoodsFeignClients {
    @GetMapping("provider/goods/{id}")
    public Goods findOne(@PathVariable("id") String id);
}
